/**
 * JAVACC DEMO 1.0
 */
package ${packPath}.controller;

import com.apache.api.api.ApiService;
import com.apache.ius.common.annotion.AnnotationUtil;
import com.apache.ius.controller.SuperTransAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * description:  TransAction
 * ius服务请求入口统一action
 */
@Controller
public class TransAction extends SuperTransAction {

    @Autowired(required = false)
    @Qualifier("${reqName}Service")
    private ApiService ${reqName}Service;

    /**
     * 初始化方法
     * @throws Exception
     */
    @ModelAttribute
    public void populateModel() throws Exception {
        if(this.iusService==null) {
            this.setIusService(${reqName}Service);
        }
        if(!AnnotationUtil.isScanning){
            AnnotationUtil.getInstance().loadCalssBean("com.apache.ius");
        }
    }

}
